package com.tuanzi.loan.schedule.receipt;

import com.tuanzi.loan.business.service.statistics.StatNotRegisterLoginService;
import com.tuanzi.loan.core.aspect.Debug;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * User: liangZongXi
 * Create time: 15:25 2019/10/9
 * Description:
 */
@Debug
@Slf4j
@Service
public class StatNotRegisterLoginScheduler {
    @Autowired
    private StatNotRegisterLoginService statNotRegisterLoginService;

    @Scheduled(cron = "${cron.statistics.not_register_login}")
    public void statNotRegisterLogin(){
        log.info("自然量统计开始...");
        statNotRegisterLoginService.statYesterdayNotRegisterLogin();
        log.info("自然量统计完毕...");
    }
}
